home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / include / X11 / extensions / XRes.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-04-12  |  947 b   |  59 lines

  1. /*
  2.    Copyright (c) 2002  XFree86 Inc
  3. */
  4. /* $XdotOrg: xc/include/extensions/XRes.h,v 1.2 2004/04/23 18:43:06 eich Exp $ */
  5. /* $XFree86: xc/include/extensions/XRes.h,v 1.3 2002/03/10 22:05:51 mvojkovi Exp $ */
  6.  
  7. #ifndef _XRES_H
  8. #define _XRES_H
  9.  
  10. #include <X11/Xfuncproto.h>
  11.  
  12. typedef struct {
  13.   XID resource_base;
  14.   XID resource_mask;
  15. } XResClient;
  16.  
  17. typedef struct {
  18.   Atom resource_type;
  19.   unsigned int count;
  20. } XResType;
  21.  
  22. _XFUNCPROTOBEGIN
  23.  
  24.  
  25. Bool XResQueryExtension (
  26.    Display *dpy,
  27.    int *event_base,
  28.    int *error_base
  29. );
  30.  
  31. Status XResQueryVersion (
  32.    Display *dpy,
  33.    int *major_versionp,
  34.    int *minor_versionp
  35. );
  36.  
  37. Status XResQueryClients (
  38.    Display *dpy,
  39.    int *num_clients,
  40.    XResClient **clients
  41. );
  42.  
  43. Status XResQueryClientResources (
  44.    Display *dpy,
  45.    XID xid,
  46.    int *num_types,
  47.    XResType **types
  48. );
  49.  
  50. Status XResQueryClientPixmapBytes (
  51.    Display *dpy,
  52.    XID xid,
  53.    unsigned long *bytes
  54. );
  55.  
  56. _XFUNCPROTOEND
  57.  
  58. #endif /* _XRES_H */
  59.